global get_stack
global set_stack

global get_cs
global get_ds

get_stack:
	mov eax,esp
	ret

set_stack:
	mov eax,[esp+4]
	mov ebx,[esp]
	mov [eax],ebx
	mov ebx,[esp+4]
	mov [eax+4],ebx
	mov esp,eax
	ret
	
	
get_cs:
	mov eax,cs
	ret
	
get_ds:
	mov eax,ds
	ret
